package com.dkm.ec.sale.persistence.dao.impl;

import org.springframework.stereotype.Repository;

import com.dkm.base.db.mybatis.dao.MyBatisQueryDaoImpl;
import com.dkm.ec.sale.persistence.dao.SaleEntityStatQueryDao;
import com.dkm.ec.sale.persistence.entity.SaleEntityStatPo;

/**
 * 对象功能:产品SKU统计 QueryDao接口的实现
 * 开发公司:SKG.COM
 * 开发人员:Yuki
 * 创建时间:2015-02-03 16:37:03
 */
@Repository
public class SaleEntityStatQueryDaoImpl extends MyBatisQueryDaoImpl<String, SaleEntityStatPo> implements SaleEntityStatQueryDao{

    @Override
    public String getNamespace() {
        return SaleEntityStatPo.class.getName();
    }

	@Override
	public SaleEntityStatPo getBySkuId(String skuId) {
		return getByKey("getBySkuId", b().a("skuId", skuId).p());
	}
	
	@Override
	public SaleEntityStatPo getByProdId(String prodId) {
		return getByKey("getByProdId", b().a("prodId", prodId).p());
	}
	
}
